module.exports = {
    presets: [
        ["@vue/cli-plugin-babel/preset", {
            "targets": {
                "chrome": "51",
                "ie": "10",
                "firefox": '55',
                "edge": '12',
                "safari": '14',
                "opera": '15'
            },
            "useBuiltIns": "usage",
            "corejs": {
                "version": 3, // 使用core-js@3
                "proposals": true
            },
            polyfills: [
                'es.promise',
                'es.symbol'
            ],
        }],
		["@babel/preset-env" ]// ES语法转换
    ],
	"plugins": [
		["@babel/plugin-proposal-decorators", { "legacy": true }]
	],
    env: {
        development: {
            plugins: ['dynamic-import-node'],
        },
    },
}
